//  This file is part of Swordbible - http://www.swordwarrior.net
//  Copyright (C) 2003-2008 Manu Mital mitalmanu@hotmail.com

//  This program is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2, or (at your option)
//  any later version.

//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.

//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software Foundation,
//  Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


#pragma once


// CBibleSheet
# include "BiblePage.h"
#include "VerseLists.h"
#include "DailyBiblePage.h"
#include "ParallelBible.h"
# include "BottomPage.h"
#include "BottomLeft.h"
#include "DevotionalPage.h"
#include "DailyBiblePage.h"
//#include "ReadingPlanPage.h"
#include "NotesPage.h"
#include "NoModsPage.h"
#include "ScripRef.h"


class CBibleSheet : public CPropertySheet
{
	DECLARE_DYNAMIC(CBibleSheet)

public: 
	void ScaleSheet (int Height, int Width);
	CBibleSheet(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	CBibleSheet(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
	static bool GetAppDirectory( CString& strAppDir );
	void SetXrefActiveModule();
	virtual ~CBibleSheet();

	

	sword::SWMgr* pMgr;
	sword::SWMgr* pMgrPlain;                 // manager that has all tags off and outputs plain text
	CBiblePage* BiblePages[nBibles];
	CBottomPage* BottomPages[nBottom];		// Pages in the bottom sheet
	CBottomLeft* BottomLeftPages[nBottomLeft];
	CDevotionalPage* DevotionalPages[nDevotional];
	CDailyBiblePage* DBPage;
	//CReadingPlanPage* RPPage;
	CNotesPage*  notes_page;
	CNoModsPage* no_mods_page;
	CParallelBible* parallelPage;
	UINT title;
	static CScripRef * pDlg;
	static HCURSOR m_hHandCursor;
	
protected:
	RECT m_PageRect;
	DECLARE_MESSAGE_MAP()

	
protected:
	virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
	afx_msg LRESULT OnResizePage(WPARAM wParam, LPARAM lParam);
	afx_msg LRESULT OnToggleTags(WPARAM wParam, LPARAM lParam);


public:
	virtual BOOL OnInitDialog();
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	static void DisplayReference(CString text, CString title);
	afx_msg void OnDestroy();




};


